import {defineStore} from 'pinia'
import type{ICartGoods} from '@/types/index'

export const usePyStore = defineStore('pyok',{
    state(){
        return{
            list:[] as Array<ICartGoods>,
        }
    },
    actions:{},

    persist: {
        enabled: true,
        strategies: [
            {
                key: 'pyok',
                storage: sessionStorage,
                paths: ['list'],
            },
        ],
    },
})